<?php
@session_start();
$link=mysql_connect("localhost", "root", "");

if(!$link){
echo "not connected to database";
}

mysql_select_db("techworks");

$id = $_SESSION['pid2'];
$OverallPlan= $_POST['overall-plan'];
$Communicate= $_POST['communicate-with-cus'];
$Sells= $_POST['selling-prod'];




$q= mysql_query ("UPDATE `tw_com_plans` SET `overall-plan` = '$OverallPlan', `communicate-with-cus` = '$Communicate', `selling-products` = '$Sells' where `plan_id`='$id'");

if($q){
	$_SESSION['acp']= "success";
	header("location: ../incubatee/edit_plan.php#tab_tab6 ");
					
}else {
	echo mysql_error();
	//header("location: ../incubatee/edit_plan.php#tab_tab6");
	
	
}

?>



